package com.xiliu.server.modules.basicdata.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.util.Date;
import com.xiliu.common.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 房源图片表对象 xl_house_pic
 * 
 * @author xiliu
 * @date 2022-11-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("xl_house_pic")
public class XlHousePic extends BaseEntity{

    private static final long serialVersionUID = 1L;

    /** ID编号 */
    @ApiModelProperty("主键ID")
    @TableId(value = "pic_id", type = IdType.AUTO)
    private Long picId;

    /** 房源ID */
    private Long houseId;

    /** 图片名称 */
    private String name;

    /** 图片地址 */
    private String url;

    /** 类型 1图片 2视频 */
    private Long flag;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "逻辑删除 1已删除 0未删除")
    private Boolean deleted;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人")
    private Long createdBy;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新人")
    private Long updatedBy;

    /** 数据版本 */
    private Long version;




}
